package com.mrcode.neptuneproject.common;

import lombok.Getter;

/**
 * @Author YSH
 * @Date 2023/6/1 15:07
 * @Version 1.0
 */
@Getter
public enum ResultEnum {
    /**
     * 通用错误返回枚举
     */
    FAIL(-1,"未知错误"),
    SUCCESS(200,"成功"),
    USER_NOT_EXIST(1,"用户不存在"),
    USER_IS_EXISTS(2,"用户已存在"),
    DATA_IS_NULL(3,"数据为空");

    private final Integer code;
    private final String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
